/* 个人中心-优惠券 */
.page-uc-coupons {
  .coupons-list {
    display: flex;
    margin-top: -15px;
    flex-wrap: wrap;
    width: 1080px;
    .item {
      width: 255px;
      margin: 20px 20px 0 0;
      position: relative;
      overflow: hidden;
      background: #fff;
      min-height: 215px;
      box-shadow: 0 5px 10px rgba(0,0,0,.05);
      &:nth-child(4n) {
        margin-right: 0;
      }
      .coupon-close {
        position: absolute;
        width: 30px;
        height: 30px;
        right: -30px;
        top: 0;
        z-index: 1;
        cursor: pointer;
        -moz-transition: all 0.2s;
        -webkit-transition: all 0.2s;
        -o-transition: all 0.2s;
        transition: all 0.2s;
        &::before {
          position: absolute;
          top: 9px;
          left: 9px;
          display: block;
          width: 12px;
          height: 12px;
          content: " ";
          background: url(@/assets/images/icons.png) no-repeat -17px -232px;
        }
      }
      &:hover {
        .coupon-close {
          right: 0;
        }
      }
      .coupon-type {
        background: #e1251b;
        padding: 15px 10px 12px;
        color: #fff;
        position: relative;
        &::before {
          position: absolute;
          display: block;
          width: 10px;
          height: 10px;
          content: " ";
          background: #fff;
          border-radius: 50%;
          top: 50%;
          transform: translateY(-50%);
          left: -5px;
        }
        &::after {
          position: absolute;
          display: block;
          width: 10px;
          height: 10px;
          content: " ";
          background: #fff;
          border-radius: 50%;
          top: 50%;
          transform: translateY(-50%);
          right: -5px;
        }
        .coupon-price {
          display: flex;
          align-items: center;
          .price {
            margin-left: 10px;
            margin-top: 5px;
            font-family: arial;
            color: #fff;
            .big {
              font-size: 24px;
            }
          }
          .limit {
            margin-left: 10px;
            margin-top: 10px;
            font-family: arial;
          }
        }
        .coupon-time {
          margin: 5px 0 5px 10px;
          font-family: arial;
          opacity: 0.7;
        }
      }
      .coupon-info {
        padding: 5px 15px;
        position: relative;
        &::before {
          position: absolute;
          top: 0;
          left: 0;
          display: block;
          width: 100%;
          height: 3px;
          background: url(@/assets/images/icons.png) no-repeat 0 -783px;
          content: " ";
          z-index: 3;
        }
        .range-item {
          margin-top: 10px;
          color: #999;
          display: flex;
          .label {
            color: #000;
            min-width: 48px;
          }
          .range {
            width: 100%;
            flex-grow: 1;
            word-break: break-all;
          }
          .text {
            flex: 1;
          }
        }
        .coupon-btn {
          display: block;
          text-align: center;
          width: 100px;
          border: 1px solid #e1251b;
          color: #e1251b;
          padding: 5px 0;
          border-radius: 30px;
          margin: 20px auto 15px;
          &:hover {
            background: #e1251b;
            color: #fff;
          }
        }
      }
    }
    .item.coupon-over-en {
      width: 255px;
      margin: 20px 20px 0 0;
      position: relative;
      overflow: hidden;
      background: #fff;
      min-height: 248px;
      box-shadow: 0 5px 10px rgba(0,0,0,.05);
    }
    .item.coupon-used-en {
      width: 255px;
      margin: 20px 20px 0 0;
      position: relative;
      overflow: hidden;
      background: #fff;
      min-height: 248px;
      box-shadow: 0 5px 10px rgba(0,0,0,.05);
    }
    .item.coupon-used {
      .coupon-type {
        background: #ccc;
      }
      .coupon-info {
        &::before {
          background-position: 0 -791px;
        }
      }
      .coupon-btn {
        display: none;
      }
      &::after {
        position: absolute;
        bottom: 15px;
        right: 15px;
        display: block;
        width: 60px;
        height: 60px;
        background: url(@/assets/images/icons.png) no-repeat;
        content: " ";
        z-index: 3;
        background-position: -65px -799px;
      }
    }
    .item.coupon-over {
      .coupon-type {
        background: #ccc;
      }
      .coupon-info {
        &::before {
          background-position: 0 -791px;
        }
      }
      .coupon-btn {
        display: none;
      }
      &::after {
        position: absolute;
        bottom: 15px;
        right: 15px;
        display: block;
        width: 60px;
        height: 60px;
        background: url(@/assets/images/icons.png) no-repeat;
        content: " ";
        z-index: 3;
        background-position: 0 -799px;
      }
    }
  }
}

/* 英文 */
.page-uc-coupons {
  .coupons-list {
    .item.coupon-used-en {
      .coupon-type {
        background: #ccc;
      }
      .coupon-info {
        &::before {
          background-position: 0 -791px;
        }
      }
      .coupon-btn {
        display: none;
      }
      &::after {
        position: absolute;
        bottom: 12px;
        right: 15px;
        display: block;
        width: 60px;
        height: 60px;
        background: url(@/assets/images/coupon-used-en.png) no-repeat;
        content: " ";
        z-index: 3;
      }
    }
    .item.coupon-over-en {
      .coupon-type {
        background: #ccc;
      }
      .coupon-info {
        &::before {
          background-position: 0 -791px;
        }
      }
      .coupon-btn {
        display: none;
      }
      &::after {
        position: absolute;
        bottom: 12px;
        right: 15px;
        display: block;
        width: 60px;
        height: 60px;
        background: url(@/assets/images/coupon-ot-en.png) no-repeat;
        content: " ";
        z-index: 3;
      }
    }
  }
}

/* 个人中心-优惠券 end */
